package com.faithnmn.utils.weather;


public class WeatherUtil {
	public static String formatString(double lati,double longi){
		return String.format(WeatherConstants.locationUrl+WeatherUtil.aid, lati+","+longi);
	}
public static String getWeatherDescription(int condition_code,String locale){
	String description = "";
	if(locale.equalsIgnoreCase("VI")){
		switch (condition_code) {
		case 0:
			description="L\u1ED1c xo\u00E1y";//Loc xoay
			break;
		case 1:
			description="B\u00E3o nhi\u1EC7t \u0111\u1EDBi";//Bao nhiet doi
			break;
		case 2:
			description="B\u00E3o l\u1ED1c";//Bao loc
			break;
		case 3:
			description="B\u00E3o k\u00E8m s\u1EA5m s\u00E9t d\u1EEF d\u1ED9i *_*";//Bao kem sam set du doi
			break;
		case 4:
			description="B\u00E3o k\u00E8m s\u1EA5m s\u00E9t";//Bao kem sam set
			break;
		case 5:
			description="C\u00F3 m\u01B0a v\u00E0 tuy\u1EBFt r\u01A1i";//Co mua va tuyet roi
			break;
		case 6:
			description="C\u00F3 m\u01B0a v\u00E0 m\u01B0a tuy\u1EBFt";//Co mua va mua tuyet
			break;
		case 7:
			description="C\u00F3 tuy\u1EBFt r\u01A1i v\u00E0 m\u01B0a tuy\u1EBFt";//Co tuyet roi va mua tuyet
			break;
		case 8:
			description="M\u01B0a ph\u00F9n l\u1EA1nh";//Mua phun lanh
			break;
		case 9:
			description="M\u01B0a ph\u00F9n";//Mua phun
			break;
		case 10:
			description="M\u01B0a l\u1EA1nh!";//Mua lanh
			break;
		case 11:
			description="M\u01B0a r\u00E0ooo";//Mua rao
			break;
		case 12:
			description="M\u01B0a \u0111\u00E1 *___*!";//Mua da
			break;
		case 13:
			description="M\u01B0a tuy\u1EBFt b\u1EA5t ch\u1EE3t";//Mua tuyet bat chot
			break;
		case 14:
			description="M\u01B0a tuy\u1EBFt nh\u1ECF";//Mua tuyet nho
			break;
		case 15:
			description="Th\u1ED5i tuy\u1EBFt!?";//Thooi tuyeet'
			break;
		case 16:
			description="C\u00F3 tuy\u1EBFt!";
			break;
		case 17:
			description="M\u01B0a \u0111\u00E1''''";//Mua da'
			break;
		case 18:
			description="M\u01B0a tuy\u1EBFt";//Mua tuyet
			break;
		case 19:
			description="C\u00F3 b\u1EE5i! Nh\u1EDB \u0111eo kh\u1EA9u trang!";//Co' Bu.i
			break;
		case 20:
			description="S\u01B0\u01A1ng m\u00F9 nh\u1EB9";//Suong mu` nhe
			break;
		case 21:
			description="S\u01B0\u01A1ng m\u00F9";//Suong mu`
			break;
		case 22:
			description="C\u00F3 kh\u00F3i";//Co' khoi'
			break;
		case 23:
			description="C\u00F3 gi\u00F3 d\u1EEF d\u1ED9i";//Co' gio' du doi
			break;
		case 24:
			description="C\u00F3 gi\u00F3";//Co' gio'
			break;
		case 25:
			description="L\u1EA1nh!";
			break;
		case 26:
			description="C\u00F3 m\u00E2y";//Co' may
			break;
		case 27:
			description="Ph\u1EA7n l\u1EDBn c\u00F3 m\u00E2y";//Ban dem phan lon co may
			break;
		case 28:
			description="Ph\u1EA7n l\u1EDBn c\u00F3 m\u00E2y";//Ban ngay phan lon co may
			break;
		case 29:
			description="\u0110\u00F4i khi c\u00F3 m\u00E2y";//Ban dem doi khi co may
			break;
		case 30:
			description="\u0110\u00F4i khi c\u00F3 m\u00E2y";//Ban ngay doi khi co may
			break;
		case 31:
			description="Tr\u1EDDi quang";//Ban dem troi trong sang
			break;
		case 32:
			description="Tr\u1EDDi c\u00F3 n\u1EAFng'''''!";//Troi co nang
			break;
		case 33:
			description="Th\u1EDDi ti\u1EBFt ban \u0111\u00EAm \u0111\u1EB9p!";//Thoi tiet ban ngay dep!
			break;
		case 34:
			description="Th\u1EDDi ti\u1EBFt ban ng\u00E0y \u0111\u1EB9p!";//Thoi tiet ban dem dep!
			break;
		case 35:
			description="C\u00F3 m\u01B0a v\u00E0 c\u1EA3 m\u01B0a \u0111\u00E1";//Co mua va ca mua da
			break;
		case 36:
			description="Tr\u1EDDi n\u00F3ng...";//Troi nong!
			break;
		case 37:
			description="B\u00E3o t\u1ED1 k\u00E8m s\u1EA5m s\u00E9t bi\u1EC7t l\u1EADp";// Bao to kem sam set biet lap
			break;
		case 38:
			description="B\u00E3o k\u00E8m s\u1EA5m s\u00E9t r\u1EA3i r\u00E1c";//Bao kem sam set rai rac
			break;
		case 39:
			description="B\u00E3o k\u00E8m s\u1EA5m s\u00E9t r\u1EA3i r\u00E1c";
			break;
		case 40:
			description="M\u01B0a r\u00E0o r\u1EA3i r\u00E1c";//Mua rao rai rac
			break;
		case 41:
			description="Tuy\u1EBFt r\u01A1i d\u00E0y";//Tuyet roi day
			break;
		case 42:
			description="M\u01B0a \u0111\u00E1 tuy\u1EBFt r\u1EA3i r\u00E1c";//Mua da tuyet rai rac
			break;
		case 43:
			description="Tuy\u1EBFt r\u01A1i d\u00E0yyy";
			break;
		case 44:
			description="C\u00F3 m\u00E2y t\u1EEBng n\u01A1i";//Co may mot bo phan
			break;
		case 45:
			description="M\u01B0a r\u00E0o k\u00E8m s\u1EA5m s\u00E9t";//Mua rao kem sam set
			break;
		case 46:
			description="M\u01B0a tuy\u1EBFt";//Mua tuyet
			break;
		case 47:
			description="B\u00E3o t\u1ED1 k\u00E8m s\u1EA5m s\u00E9t bi\u1EC7t l\u1EADp";//Bao to kem sam set biet lap
			break;
		case 3200:
			description = "Kh\u00F4ng c\u00F3 s\u1EB5n";
			break;
		default:
			description = "B\u00ED m\u1EADt,ko n\u00F3i \u0111\u00E2u!";
			break;
		}
	}else{
		switch (condition_code) {
		case 0:
			description="Tornado";
			break;
		case 1:
			description="Tropical Storm";//Bao nhiet doi
			break;
		case 2:
			description="Hurricane";//Bao loc
			break;
		case 3:
			description="Severe Thunderstorms";//Bao kem sam set du doi
			break;
		case 4:
			description="Thunderstorms";//Bao kem sam set
			break;
		case 5:
			description="Mixed rain and snow";//Co mua va tuyet roi
			break;
		case 6:
			description="Mixed rain and sleet";//Co mua va mua tuyet
			break;
		case 7:
			description="Mixed snow and sleet";//Co tuyet roi va mua tuyet
			break;
		case 8:
			description="Freezing drizzle";//Mua phun lanh
			break;
		case 9:
			description="Drizzle";//Mua phun
			break;
		case 10:
			description="Freezing rain";//Mua lanh
			break;
		case 11:
			description="Showers";//Mua rao
			break;
		case 12:
			description="Showers";//Mua da
			break;
		case 13:
			description="Snow flurries";//Mua tuyet bat chot
			break;
		case 14:
			description="Light snow showers";//Mua tuyet nho
			break;
		case 15:
			description="Blowing snow";//Thooi tuyeet'
			break;
		case 16:
			description="Snow";
			break;
		case 17:
			description="Hail";//Mua da'
			break;
		case 18:
			description="Sleet";//Mua tuyet
			break;
		case 19:
			description="Dust";//Co' Bu.i
			break;
		case 20:
			description="Foggy";//Suong mu` nhe
			break;
		case 21:
			description="Haze";//Suong mu`
			break;
		case 22:
			description="Smoky";//Co' khoi'
			break;
		case 23:
			description="Blustery";//Co' gio' du doi
			break;
		case 24:
			description="Windy";//Co' gio'
			break;
		case 25:
			description="Cold";
			break;
		case 26:
			description="Cloudy";//Co' may
			break;
		case 27:
			description="Mostly cloudy (night)";//Ban dem phan lon co may
			break;
		case 28:
			description="Mostly cloudy (day)";//Ban ngay phan lon co may
			break;
		case 29:
			description="Partly cloudy (night)";//Ban dem doi khi co may
			break;
		case 30:
			description="Partly cloudy (day)";//Ban ngay doi khi co may
			break;
		case 31:
			description="Clear (night)";//Ban dem troi trong sang
			break;
		case 32:
			description="Sunny";//Troi co nang
			break;
		case 33:
			description="Fair (night)";//Thoi tiet ban ngay dep!
			break;
		case 34:
			description="Fair (day)";//Thoi tiet ban dem dep!
			break;
		case 35:
			description="Mixed rain and hail";//Co mua va ca mua da
			break;
		case 36:
			description="Hot";//Troi nong!
			break;
		case 37:
			description="Isolated Thunderstorms";// Bao to kem sam set biet lap
			break;
		case 38:
			description="Scattered Thunderstorms";//Bao kem sam set rai rac
			break;
		case 39:
			description="Scattered Thunderstorms";
			break;
		case 40:
			description="Scattered Showers";//Mua rao rai rac
			break;
		case 41:
			description="Heavy Snow";//Tuyet roi day
			break;
		case 42:
			description="Scattered snow showers";//Mua da tuyet rai rac
			break;
		case 43:
			description="Heavy Snow";
			break;
		case 44:
			description="Partly Cloudy";//Co may mot bo phan
			break;
		case 45:
			description="Thundershowers";//Mua rao kem sam set
			break;
		case 46:
			description="Snow Showers";//Mua tuyet
			break;
		case 47:
			description="Isolated Thundershowers";//Bao to kem sam set biet lap
			break;
		case 3200:
			description = "Not available";
			break;
		default:
			description = "Secret!";
			break;
		}
	}
	return description;
}
public static final String aid="YrkXBErV34GNj8APbonpaqRAmc535O3ofxPk4NNlFr60noQH7cm2dTW1YlHE6SYo";
}
